package com.liang.method;

import com.liang.studyEmun.lwhEnum;

public class method {
    public static void main(String[] args) {
        canshu(1, 88);
        getSum(1, 2, 3);//直接调用，没有输出
        System.out.println(getSum(1, 2, 3));//输出调用
        int sum = getSum(1, 2, 3);//赋值调用
        System.out.println(sum);
    }


    //形参参数调用方法
    public static void canshu(int num1,int num2){
        lwhEnum one = lwhEnum.ONE;
        String name1 = lwhEnum.TWO.name();
        lwhEnum one1 = lwhEnum.valueOf("ONE");
        String value = lwhEnum.getValue(1);
        int result = num1 + num2;
       String name  = "梁伟浩";
        System.out.println(name.length()+"111111111111");
        System.out.println(result);
    }

    //计算季度总额
    public static int getSum(int month1,int month2 ,int month3){
        int result = month1+month2+month3;
        return result;
    }

    //Double自动装箱拆箱
    public static Double getArea(double len, double width){
        double area = len * width;
        return area;
    }
}
